  {% include "header.html" %}
  <script type="text/javascript" >
    var agency_id = "{{ agency_id }}";
    var route_type = "{{ route_type }}";
  </script>
  <h1>Frequency List <a href="http://code.google.com/transit/spec/transit_feed_specification.html#routes_txt___Field_Definitions">Refer</a></h1>
  {% if prompt %}
  <p id="prompt">{{ prompt }}</p>
  {% endif %}
  <div id="editor">
    <form method="POST" action="{{ url }}" id="editorform">
      <table>
        <tr>
          <th>Items</th>
          <th>Values</th>
        </tr>
        <tr>
          <td>ID</td>
          <td><input name = "trip_id" id = "trip_id" type="TEXT" value="{{ frequency.id }}"/></td>
        </tr>
        <tr>
          <td>Start Time</td>
          <td><input name = "start_time" type="text" value="{{ frequency.start_time }}"/></td>
        </tr>
        <tr>
          <td>End Time</td>
          <td><input name = "end_time" type="text" value="{{ frequency.end_time }}"/></td>
        </tr>
        <tr>
          <td>End Date</td>
          <td><input name = "headway_secs" type="text" value="{{ frequency.headway_secs }}"/></td>
        </tr>
        <tr>
          <td colspan="2">
            <input type="submit" id = "submit" value="{{ submit }}" name = "submit" />
          </td>
        </tr>
      </table>
  </form>


</div>
<div class="sort">
  <form method="POST" action="" name="search">
    <input type="text" value=""/> <input type="submit" value="Search"/>
  </form>


</div>
    <div class="pager">
      paging info: [<a href="#">1</a>] [<a href="#">2</a>] ... [<a href="#">last</a>] <input type="text" value="" size="4" maxlength="4"/> <input type="submit" value="Go" />
    </div>
    <table>
      <tr>
    <th>&nbsp;</th>
    <th>ID</th>
    <th>Start Time</th>
    <th>End Time</th>
    <th>Headway Seconds</th>
    <th>Action</th>
      </tr>
      {% for frequency in frequencies %}
      <tr>
        <td><input type="checkbox" name="deleteid" value="{{frequency.id}}"/></td>
        <td>{{frequency.id}}</td>
        <td>{{frequency.start_time}}</td>
        <td>{{frequency.end_time}}</td>
        <td>{{frequency.headway_secs}}</td>
        <td>
          <a href="/admin/frequency?act=edit&id={{frequency.id}}">Edit</a>&nbsp;
          <a href="/admin/frequency?act=delete&id={{frequency.id}}">Delete</a>
        </td>
      </tr>
      {% endfor %}
    </table>
    <div class="pager">
      [<a href="#">1</a>] [<a href="#">2</a>] ... [<a href="#">last</a>] <input type="text" value="" size="4" maxlength="4"/> <input type="submit" value="Go" />
    </div>
    <div class="control">
      <input type="submit" value="Delete All"/>
    </div>
  </body>
</html>
